<?php
/* 
 * ebiz front
 * 
 * EmailTemplate Model
 * 
 * @author allen
 * 
 */
require_once '../app/core/models/BaseDao.php';
require_once '../app/core/db/DBUtil.class.php';

class EmailTemplateDao extends BaseDao 
{
	
    private $tableName = "email_templates";   
     
    public function __construct($dbUtil){ 
        parent::__construct($dbUtil);
    }
    
    public function getByTag($param = array()){ 
	    try{
	    	$sql = "select * from $this->tableName where lower(tag) = ?";
	        return $this->dbUtil->SelectData($sql, $param);
	    }
        catch(Exception $e){
            echo $e->getMessage();  exit();
        }
    }
    
}



